package com.yundingai.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 学习信息（场景）表
 * @TableName study_scene
 */
@TableName(value ="study_scene")
@Data
public class StudyScene {
    /**
     * 
     */
    @TableId
    private Integer sceneId;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StudyScene other = (StudyScene) that;
        return (this.getSceneId() == null ? other.getSceneId() == null : this.getSceneId().equals(other.getSceneId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSceneId() == null) ? 0 : getSceneId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sceneId=").append(sceneId);
        sb.append("]");
        return sb.toString();
    }
}